package com.an.homework;

public class HomeWork_9 {
    public static void main(String[] args) {
        BBB bbb = new BBB();
        int ret=0;
        try {
          // ret=bbb.cal();
        }catch(ArrayIndexOutOfBoundsException e){
            System.out.println(e);
        }catch(NumberFormatException f){
            System.out.println("数据格式不对");
        }catch(ArithmeticException g){
            System.out.println("除0");
        }
        System.out.println("ret="+ret);

    }
}

class BBB{
    public int cal(int a,int b){
        return a/b;
    }
}
